/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-05-13
 * Time: 12:14
 */
import java.awt.*;
import java.util.Scanner;

class Date {

    private  int x;
    private  int y;

    public Date(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}

public class Practice {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Date date = new Date(x,y);
            date.setX(y);
            date.setY(x);
            System.out.println(date.getX() + date.getY());
        }
    }
}
